package com.example.thread.d9CompletableFuture2;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) throws ParseException {
        String delayDate = "2023-11-14 08-08-12";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String currentDate = sdf.format(new Date());
        Date currentDateFormat = sdf.parse(currentDate);
        System.out.println(currentDateFormat);

        Date delayDateFormat = sdf.parse(delayDate);
        System.out.println(delayDateFormat);

        System.out.println(currentDateFormat.getTime() == delayDateFormat.getTime());
    }
}
